project(PyBuffer)
include(CPack)
cmake_minimum_required(VERSION 2.4.2 FATAL_ERROR)

find_package(WrapITK REQUIRED)

# Deal with numarray package  Options
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
find_package( NUMARRAY )

include_directories( ${PYTHON_NUMARRAY_INCLUDE_DIR} )

WRAP_LIBRARY("BufferConversion" Python)

  set(WRAPPER_LIBRARY_DEPENDS Base)
  set(WRAPPER_LIBRARY_LINK_LIBRARIES ITKCommon)
    set(WRAPPER_SWIG_LIBRARY_FILES ${WRAPPER_SWIG_LIBRARY_FILES} "${CMAKE_CURRENT_SOURCE_DIR}/itkPyBuffer.swg")

  WRAPPER_LIBRARY_CREATE_WRAP_FILES()
END_WRAP_LIBRARY()

WRAP_ITK_INSTALL("/Python/itkExtras/" "${CMAKE_CURRENT_SOURCE_DIR}/PyBufferExtras.py")
